package com.zhongke.common.imageloader

import androidx.annotation.IntDef
import com.zhongke.common.imageloader.CornerType.Companion.ALL
import com.zhongke.common.imageloader.CornerType.Companion.BOTTOM
import com.zhongke.common.imageloader.CornerType.Companion.BOTTOM_LEFT
import com.zhongke.common.imageloader.CornerType.Companion.BOTTOM_RIGHT
import com.zhongke.common.imageloader.CornerType.Companion.LEFT
import com.zhongke.common.imageloader.CornerType.Companion.RIGHT
import com.zhongke.common.imageloader.CornerType.Companion.TOP
import com.zhongke.common.imageloader.CornerType.Companion.TOP_LEFT
import com.zhongke.common.imageloader.CornerType.Companion.TOP_RIGHT
import com.zhongke.common.imageloader.ImageType.Companion.CORNER
import com.zhongke.common.imageloader.ImageType.Companion.NORMAL
import com.zhongke.common.imageloader.ImageType.Companion.ROUND

/**
 *@Date: 2022/5/10
 *@Time: 9:35
 *@Author:cxc
 *@Description:圆角类型
 */
@IntDef(
    ALL,
    TOP_LEFT,
    TOP_RIGHT,
    BOTTOM_LEFT,
    BOTTOM_RIGHT,
    TOP,
    BOTTOM,
    LEFT,
    RIGHT,
)
@kotlin.annotation.Retention(AnnotationRetention.SOURCE)
annotation class CornerType {
    companion object {
        const val ALL = 0

        const val TOP_LEFT = 1
        const val TOP_RIGHT = 2
        const val BOTTOM_RIGHT = 3
        const val BOTTOM_LEFT = 4

        const val TOP = 5
        const val BOTTOM = 6
        const val LEFT = 7
        const val RIGHT = 8
    }
}

@IntDef(
    NORMAL,
    CORNER,
    ROUND,
)
@kotlin.annotation.Retention(AnnotationRetention.SOURCE)
annotation class ImageType {
    companion object {
        const val NORMAL = 9
        const val CORNER = 10
        const val ROUND = 11
    }
}
